package demo.java.lang.management.vo;

import java.io.Serializable;

public class Annotation implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 8444413510656678302L;
	public static final String CLIENT_SEND = "cs";
	public static final String CLIENT_RECEIVE = "cr";
	public static final String SERVER_SEND = "ss";
	public static final String SERVER_RECEIVE = "sr";
	private Long timestamp;
	private String value;
	private Long duration;

//	public Annotation() {
//
//	}

//	public Annotation(Long timestamp, String value, Endpoint host, Integer duration) {
//		this.timestamp = timestamp;
//		this.value = value;
//		this.host = host;
//        this.duration = duration;
//	}

	public Long getTimestamp() {
		return timestamp;
	}

	public void setTimestamp(Long timestamp) {
		this.timestamp = timestamp;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

    public Long getDuration() {
        return duration;
    }

    public void setDuration(Long duration) {
        this.duration = duration;
    }
    

    @Override
	public String toString() {
		return "Annotation{" + "timestamp=" + timestamp + ", value='" + value
				+ '\'' + ", duration=" + duration + '}';
	}
}
